﻿{% extends "base.html" %}
{% block title %}Задание | WTD {% endblock title %}
{% block content %}
	{% ifequal tasks|length 0 %}
		<div class="no_cabs">Ничего не задали!</div>
	{% else %}
		<div class="container">
			{% for t in tasks %}
				<a class="invisible_link" href="/task/id/{{t.id}}">
					<div class="description">
						<div class="hw_text">{{t.text}}</div>
						<div class="hw_date">С {{t.start_date}} до {{t.end_date}} ({{t.subject}})</div>
					</div>
				</a>
				<hr/>
			{% endfor %}
			<div class="pages">
				{% for i in pages %}
					<a href="{{i}}">{{i}}</a>
				{% endfor %}
			</div>
		</div>
	{% endifequal %}
{% endblock content %}
